home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1998 June / SGI Freeware 1998 June.iso / dist / fw_ATxgopher.idb / usr / freeware / src / xgopher.1.3 / util.h.z / util.h
C/C++ Source or Header  |  1998-01-21  |  3KB  |  195 lines

  1. /* util.h
  2.    declarations of utility procedures. */
  3.  
  4.      /*---------------------------------------------------------------*/
  5.      /* Xgopher        version 1.3     08 April 1993                  */
  6.      /*                version 1.2     20 November 1992               */
  7.      /*                version 1.1     20 April 1992                  */
  8.      /*                version 1.0     04 March 1992                  */
  9.      /* X window system client for the University of Minnesota        */
  10.      /*                                Internet Gopher System.        */
  11.      /* Allan Tuchman, University of Illinois at Urbana-Champaign     */
  12.      /*                Computing and Communications Services Office   */
  13.      /* Copyright 1992, 1993 by                                       */
  14.      /*           the Board of Trustees of the University of Illinois */
  15.      /* Permission is granted to freely copy and redistribute this    */
  16.      /* software with the copyright notice intact.                    */
  17.      /*---------------------------------------------------------------*/
  18.  
  19. #ifndef UTIL_H
  20. #define UTIL_H
  21.  
  22. #include "gopher.h"
  23.  
  24.  
  25. accessList    nullHostList;
  26.  
  27.  
  28. gopherItemP    makeItem(
  29. #ifdef PROTO
  30.     int,        /* type  -- really char, but gcc complains */
  31.     char *,        /* titleString */
  32.     char *,        /* selectString */
  33.     char *,        /* host */
  34.     int,        /* port */
  35.     BOOLEAN        /* plus */
  36. #endif
  37. );
  38.  
  39. void            initItemClasses(
  40. );
  41.  
  42. void            doneItemClasses(
  43. );
  44.  
  45. void            restartItemClasses(
  46. );
  47.  
  48. BOOLEAN            processItem(
  49. #ifdef PROTO
  50.     gopherItemP    /* gi */
  51. #endif
  52. );
  53.  
  54. BOOLEAN            copyItemToFile(
  55. #ifdef PROTO
  56.     gopherItemP    /* gi */
  57. #endif
  58. );
  59.  
  60. void            updateDirectory(
  61. #ifdef PROTO
  62.     gopherDirP    /* d */
  63. #endif
  64. );
  65.  
  66. static BOOLEAN        GU_ftpCheck(
  67. #ifdef PROTO
  68.     gopherItemP    /* gi */
  69. #endif
  70. );
  71.  
  72. void            GU_makePrefix(
  73. #ifdef PROTO
  74.     char *,        /* target */
  75.     char *        /* source */
  76. #endif
  77. );
  78.  
  79. static gopherItemP    GU_getGopherItem(
  80. #ifdef PROTO
  81.     int        /* gfd */
  82. #endif
  83. );
  84.  
  85. scInfo            *GU_copySubclassRecord(
  86. #ifdef PROTO
  87.     int        /* type  -- really char, but gcc complains */
  88. #endif
  89. );
  90.  
  91. BOOLEAN            GU_isVowel(
  92. #ifdef PROTO
  93.     char *        /* str */
  94. #endif
  95. );
  96.  
  97. accessList        GU_createAccessList(
  98. #ifdef PROTO
  99.     char *        /* string */
  100. #endif
  101. );
  102.  
  103. BOOLEAN            GU_checkAccess(
  104. #ifdef PROTO
  105.     char *,        /* host */
  106.     accessList    /* permitList */
  107. #endif
  108. );
  109.  
  110. #ifdef DEBUG
  111. void            GU_printAccessList(
  112. #ifdef PROTO
  113.     accessList    /* list */
  114. #endif
  115. );
  116. #endif /* DEBUG */
  117.  
  118.  
  119.  
  120. int            GI_connectWithStatus(
  121. #ifdef PROTO
  122.     gopherItemP     /* gi */
  123. #endif
  124. );
  125.  
  126. BOOLEAN            GI_copyBinaryFromNetEOF(
  127. #ifdef PROTO
  128.     int,        /* s */
  129.     int,        /* outFD */
  130.     gopherItemP,    /* gi */
  131.     char *        /* msg */
  132. #endif
  133. );
  134.  
  135. BOOLEAN            GI_copyBinaryFromNetLen(
  136. #ifdef PROTO
  137.     int,        /* s */
  138.     int,        /* outFD */
  139.     gopherItemP,    /* gi */
  140.     char *        /* msg */
  141. #endif
  142. );
  143.  
  144. BOOLEAN            GI_copyAsciiFromNet(
  145. #ifdef PROTO
  146.     int,        /* s */
  147.     int,        /* outFD */
  148.     gopherItemP,    /* gi */
  149.     char *        /* msg */
  150. #endif
  151. );
  152.  
  153. BOOLEAN            GI_getGopherDir(
  154. #ifdef PROTO
  155.     int,        /* gfd */
  156.     gopherDirP    /* d */
  157. #endif
  158. );
  159.  
  160. BOOLEAN            GI_noCopyItem(
  161. #ifdef PROTO
  162.     gopherItemP    /* gi */
  163. #endif
  164. );
  165.  
  166. BOOLEAN            GI_copyToFile(
  167. #ifdef PROTO
  168.     gopherItemP    /* gi */
  169. #endif
  170. );
  171.  
  172. BOOLEAN            GI_access(
  173. #ifdef PROTO
  174.     gopherItemP    /* gi */
  175. #endif
  176. );
  177.  
  178. void            GI_init(
  179. );
  180.  
  181. void            GI_done(
  182. );
  183.  
  184. void            GI_restart(
  185. );
  186.  
  187.  
  188. BOOLEAN            GI_process(
  189. #ifdef PROTO
  190.     gopherItemP    /* gi */
  191. #endif
  192. );
  193.  
  194. #endif    /* UTIL_H */
  195.